package com.cssw.fyzb.tps.util;

/**
 * @author Feng Chen
 */
public class Bizs {

    public static Biz UNMATCH_IDCARD = Biz.of(10004, "您的三要素信息不一致，审核不通过！");
    public static Biz UNMATCH_FACE = Biz.of(10005, "身份证/姓名/人脸不匹配");

    public static Biz ACCESS_TOKEN_FAIL = Biz.of(20001, "获取 Access Token 失败:");
    public static Biz ACCESS_TOKEN_TIMEOUT = Biz.of(20002, "Access Token 超时:");

    public static Biz NONCE_TICKET_FAIL = Biz.of(30001, "获取 NONCE Ticket 失败:");
    public static Biz USER_AUTH_INFO_SEND_FAIL = Biz.of(40001, "合作方后台上送身份信息失败:");
    public static Biz AUTH_RESULT_QUERY_FAIL = Biz.of(50001, "服务端验证结果失败:");
    public static Biz SIGN_TICKET_FAIL = Biz.of(60001, "获取 SIGN Ticket 失败:");



    public static class Biz {

        public int code;
        public String message;

        public static Biz of(int code, String message) {
            return new Biz(code, message);
        }

        public Biz() {
        }

        public Biz(int code, String message) {
            this.code = code;
            this.message = message;
        }
    }

}
